<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ page import="net.ojbk.jiaofu.service.*" import="net.ojbk.jiaofu.po.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>发布页面</title>

<link href="css/bootstrap-jf.min.css" rel="stylesheet">
<link href="css/datepicker3-jf.css" rel="stylesheet">
<link href="css/styles-jf.css" rel="stylesheet">

<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->

</head>

<body>
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="file:///C:/Users/xjm/Desktop/btst_5_medialoot%20(2)/btst_5_medialoot/forms.jsp#"><span>师易</span>材料收集界面</a>
				<ul class="user-menu">
					<li class="dropdown pull-right">
						<a href="个人主页.jsp" class="dropdown-toggle" data-toggle="dropdown">个人主页</a>
					</li>
				</ul>
			</div>
							
		</div><!-- /.container-fluid -->
	</nav>
		
	<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
		<form role="search">
			<div class="form-group">
				<input type="text" class="form-control" placeholder="Search">
			</div>
		</form>
		<ul class="nav menu">
			<li><a href="#"><span class="glyphicon glyphicon-pencil"></span> 提交材料</a></li>	

			
            <li class="parent ">
                <a href="#">
                    <span class="glyphicon glyphicon-list"></span> 教务任务发布 <span data-toggle="collapse" href="#sub-item-1" class="icon pull-right"><em class="glyphicon glyphicon-s glyphicon-plus"></em></span> 
                </a>
                <ul class="children collapse" id="sub-item-1">
                    <li>
                        <a href="publishImage.jsp">
                            <span class="glyphicon glyphicon-share-alt"></span> 截图任务发布
                        </a>
                    </li>
                    <li>
                        <a href="publishZip.jsp">
                            <span class="glyphicon glyphicon-share-alt"></span> 压缩包任务发布
                        </a>
                    </li>
                    <li>
                        <a href="publishExcel.jsp">
                            <span class="glyphicon glyphicon-share-alt"></span> 信息收集任务发布
                        </a>
                    </li>
                </ul>
            </li>

			<li><a href="主页.jsp"><span class="glyphicon glyphicon-th"></span> 返回主页</a></li>
			<li role="presentation" class="divider"></li>
			<li><a href="登陆界面.jsp"></span>登陆其他账号</a></li>
		</ul>
			<div class="attribution">提交提供 by <a href="http://www.medialoot.com/item/lumino-admin-bootstrap-template/">师易</a></div>
	</div><!--/.sidebar-->
		
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">			
		<div class="row">
			<ol class="breadcrumb">
				<li><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
				<li class="active">Publish StudentData</li>
			</ol>
		</div><!--/.row-->
		
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header">StudentData Task</h1>
			</div>
		</div><!--/.row-->
				
		
		<div class="row">
			<div class="col-lg-12">
				<div class="panel panel-default">
					<div class="panel-heading">Send Task</div>
					<div class="panel-body">
						<div class="col-md-6">
						<!-- 写from 表单的 -->
						<form role="form" action="PublishExcelServlet" method="post">

								<div class="form-group" >
									<fieldset style="border:1px solid black;padding:5px 5px 10px;wrid">
										<div class="form-row">
											<div class="field-label"><label for="field1">任务标题</label>:</div>
											<div class="field-widget"><input name="title" id="field1" class="form-control" title="Enter your name" /></div>
										</div>
										<div class="form-row">
											<div class="field-label"><label for="field2">任务介绍</label>:</div>
											<div class="field-widget"><textarea cols="50" rows="10" class="form-control" style="" name="content"></textarea></div>
										</div> 
									</fieldset>   
								</div>

								<div class="form-group" >
									<fieldset style="border:1px solid black;padding:5px 5px 10px">
										<div class="field-label"><label for="field2">任务配置</label>:</div>
											<hr>
											<div class="form-group">
									<label>发布对象</label>
									<div class="rlf-group profile-address">
                                    <select id="province-select" class="moco-form-control" hidefocus="true" name="college">
                                        <option value="0">选择学院</option>
                                        <option value="软件学院">软件学院</option>
                                        <option value="信息学院">信息学院</option>
                                        <option value="理学院">理学院</option>
                                        <option value="外国语学院">外国语学院</option>
                                        <option value="艺术学院">艺术学院</option>
                                        <option value="交通与运输学院">交通与运输学院</option>
                                        
                                    </select>
                                    <select class="moco-form-control" id="city-select" hidefocus="true" name="grade">
                                        <option value="0">选择年级</option> 
                                        <option value="14级">14级</option>
                                        <option value="15级">15级</option>
                                        <option value="16级">16级</option>
                                        <option value="17级">17级</option>
                                        

                                    </select>
                                    <select class="moco-form-control mr0" id="area-select" hidefocus="true" name="clas">
                                        <option value="0">选择班级</option>
                                        <option value="1班">1班</option>
                                        <option value="2班">2班</option>
                                        <option value="3班">3班</option>
                                        <option value="4班">4班</option>
                                        <option value="5班">5班</option>
                                        <option value="6班">6班</option>
                                        <option value="7班">7班</option>
                                        <option value="8班">8班</option>

                                    </select>
									</div>
                                    <div class="cb"></div>
                                    <p class="rlf-tip-wrap errorHint color-red"></p>
                              
								</div>
<!-- 												<label>Excel文件命名配置:</label> -->
<!-- 												<div class="form-group"> -->
<!-- 														<div class="field-label"> -->
<!-- 															<input name="fileFormat" id="field9" class="form-control" title="文件格式要求" placeholder="例如：学生信息.xls" />		 -->
<!-- 														</div> -->
<!-- 												</div> -->
												<label>请在下方勾选所需信息:</label>
													<div class="field-label">
												<%
												for (String basicInfo : TaskService.getAllSupportBasicInfoName()) {
												%>
												<label><input type="checkbox" name="basicInfo" value="<%= basicInfo %>"> <%= basicInfo %></label>
												<% } %>
												</div>
												<script type="text/javascript">
												function extraInfoDiv(){
												 $("#extraInfoDiv").prepend('<br><label><input type="text" class="form-control" name="extraInfo" placeholder="填入其他所需信息"  value="" ></label>');
												}
												</script>
												
													<label>填入其他所需信息</label> 
													<label><input type="button" onclick="extraInfoDiv()" value="添加">
													</label> 
											   				<div id="extraInfoDiv"></div>
												<hr>
												<div class="form-row">
													<div class="field-label">
													<label for="field9">任务结束时间：</label>
													<input type="datetime-local" name="endTime" value=""/>
													</div>
												</div>


												

											</fieldset>
										</div>
								<div  style="position: absolute; bottom: -70px; left: 40px;">

											<button type="submit" class="btn btn-primary">Submit Button</button>
											<button type="reset" class="btn btn-default">Reset Button</button>
										</div>
							</form>


						</div>
					</div>
				</div>
			</div><!-- /.col-->
		</div><!-- /.row -->
		
	</div><!--/.main-->

	<script src="js/jquery-1.11.1.min-jf.js"></script>
	<script src="js/bootstrap.min-jf.js"></script>
	<script src="js/chart.min-jf.js"></script>
	<script src="js/chart-data-jf.js"></script>
	<script src="js/easypiechart-jf.js"></script>
	<script src="js/easypiechart-data-jf.js"></script>
	<script src="js/bootstrap-datepicker-jf.js"></script>
	<script>
		!function ($) {
			$(document).on("click","ul.nav li.parent > a > span.icon", function(){		  
				$(this).find('em:first').toggleClass("glyphicon-minus");	  
			}); 
			$(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");
		}(window.jQuery);

		$(window).on('resize', function () {
		  if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')
		})
		$(window).on('resize', function () {
		  if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')
		})
	</script>	
</body>

</html>
